import axios from "../utils/http.js"

//轮播图
export function indexNav( data) {
    return axios.post("/api/weChat/applet/subject/list", {enable: data})
}

export function rotation() {
    return axios.get("/api/weChat/applet/course/banner/list")
}
// rotation("/weChat/applet/course/banner/list").then(res =>{
//     this.imgUrl=res.data
// })

export function footerComponent(data) {
    return axios.post("/api/system/dict/data/list/open", data)
}

export function classMudel(data) {
    return axios.post("/api/weChat/applet/course/list/type", data)
}

//详情页
export function getClass(url, data) {
    return axios.get("api/pc/course/detail/" + url, data)
}
